<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>设置内边距</title>
.border{ border:5px soild #ccc;}
img{
 padding:80px;
 padding-bottom:0;
}
p{ padding:5%}
</style>
</head>

<body>
<img class="border" src="微信图片_20210329122201.png" alt="内边距"/>
<p class="border">段落内边距为父元素宽度的5%。</p >
</body>
</html>
